using WXWorkSvc.Common.Extensions;

namespace WXWorkSvc.Third.Pages.Account
{
    public class DeniedModel : PageModel
    {
        public List<string> Items { get; set; } = default!;
        public async Task OnGet([FromServices]WXWork3rdConfig config, [FromServices]WXDbContext db)
        {
            Items = await db.Users.Where(ii => ii.SuiteId == config.SuiteId && ii.CorpId == User.GetCorpId() && (ii.Roles&1)==1).Select(ii=>ii.UserId).ToListAsync();
        }
    }
}
